@import "../../../../../../../../../common";

:host {
    display: block;
    height: 100%;
    width: 100%;
}

.node {
    width: 100%;
    height: 100%;
    border: 2px solid $polar_grey_3;
    border-radius: 3px;
    color: $polar_grey_1;
    padding: 2px;
    background-color: white;

    :host-context(.night) & {
        background-color: $darkTheme_grey_1;
        border-color: $darkTheme_grey_5;
        color: $darkTheme_grey_6;

        a {
            color: $polar_grey_4;
        }

        &.success {
            background-color: $darkTheme_night_green;
            border-color: $darkTheme_green;
        }

        &.fail {
            background-color: $darkTheme_night_red;
            border-color: $darkTheme_red;
        }

        &.building {
            background-color: $darkTheme_night_blue;
            border-color: $darkTheme_blue;
        }

        &.inactive {
            background-color: $darkTheme_night_grey;
            border-color: grey;
        }

        &.active,
        &.highlight {
            border-color: white;
        }
    }

    .icon {
        display: unset;
        margin: 0;
    }

    .ellipsis {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    a {
        color: $polar_grey_1;

        &:hover {
            color: $cds_color_teal;
        }
    }

    .title {
        height: 100%;
        display: flex;
        flex-direction: row;
        font-size: 1em;
        padding: 2px 4px 0 4px;
        align-items: center;
        text-align: center;

        .name {
            flex: 1;
            font-weight: bold;
        }

        .count {
            padding: 0 0px 0 2px;
            text-align: right;
        }
    }

    .details {
        flex: 1;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
    }

    &.success {
        background-color: $cds_color_light_green;
        border-color: $cds_color_green;
    }

    &.fail {
        background-color: $cds_color_light_red;
        border-color: $cds_color_red;
    }

    &.building {
        background-color: $cds_color_light_teal;
        border-color: $cds_color_teal;
    }

    &.inactive {
        background-color: $cds_color_light_grey;
        border-color: grey;
    }

    &.active {
        border: 3px solid black;
        padding: 1px;
    }

    &.highlight {
        border-color: black;
    }
}
